home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nejlepší hry
/
Nejlepsi hry.iso
/
hry
/
sea of chaos
/
sea_install.msi
/
_15C39AAA7726369D39812BD40F01CF6A
/
_157E937C7D434E38BB4104E6350A09C1
< prev
next >
Wrap
Text File
|
2004-12-03
|
681b
|
38 lines
//copy basic data to dpname pixel shader
//Luke Lenhart
//(C)2004-2005 Digipen Institute of Technology
float4x4 matProj;
//shader input
struct VS_INPUT
{
float4 Pos : POSITION;
float2 Tex0 : TEXCOORD0;
float4 Color : COLOR;
};
//shader output
struct VS_OUTPUT
{
float4 Pos : POSITION;
float3 Pos2 : TEXCOORD1;
float2 Tex0 : TEXCOORD0;
float4 Color : COLOR;
};
//shader code
VS_OUTPUT VShader(VS_INPUT In)
{
VS_OUTPUT Out;
//Out.Pos=In.Pos*(1.0f/(float4(1024,768,1,1)));
//Out.Pos=mul(matProj,In.Pos);
Out.Pos2=In.Pos;
Out.Pos=mul(matProj,In.Pos);
Out.Tex0=In.Tex0;
Out.Color=In.Color;
return Out;
}